import request from "./index";

/**
 * 待办
 */

export function pdfSignTask_query_page(page, limit, beanName, dbName = "GPMSPQS", isCurDay) {
    return request({
        url: `/workflow/pdfSignTask_query_page`,
        method: "get",
        params: { page, limit, beanName, dbName, isCurDay },
        headers: {
            "Content-Type": "application/json;charset=utf-8",
        },
    });
}

export function pdfSealTask_query_page(page, limit, beanName, dbName = "GPMSPQS") {
    return request({
        url: `/workflow/pdfSealTask_query_page`,
        method: "get",
        params: { page, limit, beanName, dbName },
        headers: {
            "Content-Type": "application/json;charset=utf-8",
        },
    });
}

export function findAppointUnFinishRecord() {
    return request({
        url: `/workflow/findAppointUnFinishRecord`,
        method: "get",
        headers: {
            "Content-Type": "application/json;charset=utf-8",
        },
    });
}

/**
 * 项目报审节点
 */

export function queryHomeData2(projId) {
    return request({
        url: `/queryHomeData2`,
        method: "get",
        params: { projId },
        headers: {
            "Content-Type": "application/x-www-form-urlencoded",
        },
    });
}

export function queryHomeData(typeId) {
    return request({
        url: `/queryHomeData`,
        method: "get",
        params: {
            typeId,
        },
        headers: {
            "Content-Type": "application/x-www-form-urlencoded",
        },
    });
}

export function pqscommonSetting_query_page(type) {
    return request({
        url: `/pqscommonSetting_query_page`,
        method: "get",
        params: {
            type,
        },
        headers: {
            "Content-Type": "application/x-www-form-urlencoded",
        },
    });
}
